Xbasic

FILE.DRIVES_GET Function

Syntax

File_List as C = FILE.Drives_Get([C Separator])

Arguments

SeparatorCharacter

The character you wish to use to separate drives in the returned list.

Returns

File_ListCharacter

Returns a list of logical drives.

Description

Returns a list of the valid drives.

Discussion

The FILE.DRIVES_GET() method returns a string, File_List, that contains a list of all of the logical drives, separated by Separator. For example, "A:\,C:\,D:\,E:\,F:\"

Example

The FILE.DRIVES_GET() method returns a list of drives.

? FILE.drives_get()
= "C:\ D:\ E:\"

? FILE.drives_get(crlf())
= C:\
D:\
E:\

See Also